package com.doubao.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doubao.device.entity.UserDeviceSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用户智能体设置Mapper接口
 */
@Mapper
public interface UserDeviceSettingMapper extends BaseMapper<UserDeviceSetting> {

    /**
     * 获取用户对指定智能体的设置
     *
     * @param userId 用户ID
     * @param deviceId 智能体ID
     * @return 智能体设置
     */
    UserDeviceSetting selectByUserAndDevice(@Param("userId") Long userId, @Param("deviceId") Long deviceId);
}